optimized subprogram

[计] 优化子程序